// 导入axios实例
import { createAPI } from '@/utils/request'
// 获取目录列表
export const getDirectorytList = data => createAPI('/directorys', 'get', data)
// 获取学科简单列表
export const getSubjects = data => createAPI('/subjects/simple', 'get', data)
// 新增目录
export const addDirectory = data => createAPI('/directorys', 'post', data)
// 启用/禁用状态
export const getChange = data => createAPI(`/directorys/${data.id}/${data.state}`, 'post', data)
// 目录修改
export const modifyDirectory = data => createAPI(`/directorys/${data.id}`, 'put', data)
// 获取目录详情
export const getDetail = data => createAPI(`/directorys/${data.id}`, 'get', data)
// 删除目录
export const delDetail = data => createAPI(`/directorys/${data.id}`, 'delete', data)
